package com.rabbit.produce.controller;

import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

/**
 * @author : lqf
 * @Description :
 * @date : Create in 18:37 2018/9/26
 */
@Component
public class FanoutReceiver2 {
    @RabbitListener(queues = "topic.B")
    public void process(String message) {
        System.out.println("TopicReceiverB  : " + message);
    }

    @RabbitListener(queues = "topic.A")
    public void process2(String message) {
        System.out.println("FanoutReceiverA  : " + message);
    }
}
